import request from '@/utils/request'


export function savemoney(query) {
  return request({
    url: '/mahjong/sendMoney/savemoney/'+query,
    method: 'get',
    params: query
  })
}
// 查询取款记录列表
export function listSendMoney(query) {
  return request({
    url: '/mahjong/sendMoney/list',
    method: 'get',
    params: query
  })
}

// 查询取款记录详细
export function getSendMoney(id) {
  return request({
    url: '/mahjong/sendMoney/' + id,
    method: 'get'
  })
}

// 新增取款记录
export function addSendMoney(data) {
  return request({
    url: '/mahjong/sendMoney',
    method: 'post',
    data: data
  })
}

// 修改取款记录
export function updateSendMoney(data) {
  return request({
    url: '/mahjong/sendMoney',
    method: 'put',
    data: data
  })
}

// 删除取款记录
export function delSendMoney(id) {
  return request({
    url: '/mahjong/sendMoney/' + id,
    method: 'delete'
  })
}

// 导出取款记录
export function exportSendMoney(query) {
  return request({
    url: '/mahjong/sendMoney/export',
    method: 'get',
    params: query
  })
}
